package org.example.code.entity;

import java.math.BigDecimal;


public class DailyGoods extends Goods{
    //能用多长时间
    private Integer consistence;

//    public DailyGoods(Integer consistence,Goods goods){};

    public DailyGoods(Integer ID, String name, Integer quantity, BigDecimal price, String category, Integer consistence) {
        super(ID, name, quantity, price, category);
        this.consistence = consistence;
    }

    public DailyGoods() {
    }

    public Integer getConsistence() {
        return consistence;
    }

    public void setConsistence(Integer consistence) {
        this.consistence = consistence;
    }

    @Override
    public String consistenceToString() {
        return "" + consistence;
    }
}
